//
// Created by cheng on 2021/03/29.
//

#include <iostream>

using namespace std;

void Fibonacci(int *arr, int len);

int main () {
    int arr [10];
    Fibonacci(arr, 10);
    for (auto item : arr) {
        cout << item << " ";
    }
}

void Fibonacci(int *arr, int len) {
    arr[0] = arr[1] = 1;
    for (int i = 2; i < len; i++) {
        arr[i] = arr[i-1] + arr[i-2];
    }
}
